package com.x.controller;

import com.x.config.XProperties;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * the class of advance
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2024-06-12
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("enc")
public class EncryptController {

    private final XProperties xProperties;

    @RequestMapping("name")
    public String enc() {
        String name = xProperties.getName();
        String passwd = xProperties.getPasswd();
        System.out.println(name);
        System.out.println(passwd);
        return name;
    }
}
